<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>登录</title>
    <link rel="stylesheet" href="../../auth.css">
    <script>
        window.onload = function() {
            var setcolor = document.getElementById('setcolor');
            var week = new Date().getDay();
            // var week = 6;
            console.info(week)
            if (week == 0) {
                setcolor.setAttribute("class", "lowin lowin-green");
            } else if (week == 1) {
                setcolor.setAttribute("class", "lowin lowin-azure");
            } else if (week == 2) {
                setcolor.setAttribute("class", "lowin lowin-yeelow");
            } else if (week == 3) {
                setcolor.setAttribute("class", "lowin lowin-red");
            } else if (week == 4) {
                setcolor.setAttribute("class", "lowin lowin-purble");
            } else if (week == 5) {
                setcolor.setAttribute("class", "lowin lowin-blue");
            } else if (week == 6) {
                setcolor.setAttribute("class", "lowin lowin-index");
            }

        }
    </script>
</head>

<body>
    <div id="setcolor" class="lowin">
        <div class="lowin-brand">
            <img src="http://cicada-news.oss-cn-hangzhou.aliyuncs.com/kodinger.jpg" alt="logo">
        </div>
        <div class="lowin-wrapper">
            <div class="lowin-box lowin-login">
                <div class="lowin-box-inner">
                    <form>
                        <p>欢迎登录</p>
                        <div class="lowin-group">
                            <label>Email <a href="#" class="login-back-link">登录?</a></label>
                            <input type="email" autocomplete="email" name="email" class="lowin-input">
                        </div>
                        <div class="lowin-group password-group">
                            <label>Password <a href="#" class="forgot-link">忘记密码?</a></label>
                            <input type="password" name="password" autocomplete="current-password" class="lowin-input">
                        </div>
                        <button class="lowin-btn login-btn">
							登录
						</button>

                        <div class="text-foot">
                            还没有账号? <a href="" class="register-link">注册</a>
                        </div>
                    </form>
                </div>
            </div>

            <div class="lowin-box lowin-register">
                <div class="lowin-box-inner">
                    <form>
                        <p>欢迎加入到这个大家庭之中</p>
                        <div class="lowin-group">
                            <label>Name</label>
                            <input type="text" name="name" autocomplete="name" class="lowin-input">
                        </div>
                        <div class="lowin-group">
                            <label>Email</label>
                            <input type="email" autocomplete="email" name="email" class="lowin-input">
                        </div>
                        <div class="lowin-group">
                            <label>Password</label>
                            <input type="password" name="password" autocomplete="current-password" class="lowin-input">
                        </div>
                        <button class="lowin-btn">
							注册
						</button>

                        <div class="text-foot">
                            已有账号? <a href="" class="login-link">登录</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <footer class="lowin-footer">
            likun@asterly.cn @版权所有 <a href="http://www.asterly.cn/" target="_blank" title="技术支持">技术支持</a>
        </footer>
    </div>

    <script src="../../auth.js"></script>
    <script>
        Auth.init({
            login_url: '#login',
            forgot_url: '#forgot'
        });
    </script>
</body>

</html>